<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title></title>
    <link href="css/indexs.css" type="text/css" rel="stylesheet" >
</head>

<?php
        $username=$_POST['user_name'];
        $password=$_POST['password'];	
       

         $con = mysql_connect("localhost","root","root");
        if (!$con)
           {
            die('Could not connect: ' . mysql_error());
           }
        mysql_select_db("yoshop_store_user", $con);

        $sql="INSERT INTO user (user_name, password) VALUES ('".$user_name."', '".$password."')";
        echo $sql;
        mysql_query($sql);

        mysql_close($sql);
        
        echo $user_name."注册成功！";
        header("Location:index.php?s=/store/passport/login");

?>